From de5b04979d5206d3cd90291720c704263719270e Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Sat, 8 Dec 2012 16:57:37 +0000 Subject: [PATCH] Sheesh. Fix a bug I introduced yesterday in pocketfms_wp highlighting the very style of code I so badly want to replace. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4215 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/pocketfms_wp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/pocketfms_wp.c b/gpsbabel/pocketfms_wp.c index a43dce3fb..d7c9c3a9d 100644 --- a/gpsbabel/pocketfms_wp.c +++ b/gpsbabel/pocketfms_wp.c @@ -106,7 +106,7 @@ enigma_waypt_disp(const waypoint *wpt) if (wpt->shortname) { // The output might have a space or control character. int i, l = strlen(wpt->shortname); - t = xmalloc(l); + t = xmalloc(l + 1); char *d = t; for (i = 0; i < l; i++) { char s = wpt->shortname[i]; -- 2.30.2